﻿using System;
using System.Collections;
using System.Collections.Generic;

namespace Hyt.Core.Utils
{
    public  class Helper
    {

        public static List<T> EnumToList<T>()
        {
            List<T> list = new List<T>();
            foreach (var o in Enum.GetValues(typeof(T)))
            {
                list.Add((T)o);
            }
            return list;
        }
    }
}
